package coding.unit5;

/**
 * 初体验：重载的加载顺序
 * @author Wang Renlei
 * @Date 2020/2/17
 */

class Window {
    Window(int ma) {
        System.out.println("Window：" + ma);
    }
}

class House{
    Window w1 = new Window(1);
    House(){
        System.out.println("House()");
        w3 = new Window(33);
    }
    Window w2 = new Window(2);
    void f(){
        System.out.println("f()");
    }
    Window w3 = new Window(3);
}

public class OrderOfInitialization {
    public static void main(String[] args) {
        House house = new House();
        house.f();
    }
}
